package br.com.format;

import java.io.PrintWriter;



public class Prints {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		PrintWriter pw = new PrintWriter(System.out);
		float f = 12345;
		pw.format("float: %9.3f%n", f);
		
		pw.printf("integer: %4d%n",12355);

		pw.printf("integer: %4d%n",12355);

		pw.printf("integer: %s\n",55);

		pw.format("%d", 1.1,2.0);

		
		
		pw.close();

	}

}

